//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package me.work.pay.jsyl.app.utils;

import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.BluetoothGattDescriptor;
import android.bluetooth.BluetoothGattService;
import java.util.UUID;

public class SBleServiceProfile {
    private static final String TAG = SBleServiceProfile.class.getSimpleName();
    public static final UUID UUID_SERVICE = UUID.fromString("0000fee8-0000-1000-8000-00805f9b34fb");
    public static final UUID UUID_CHARACTERISTIC_WRITE = UUID.fromString("00001010-0000-1000-8000-00604c6a57ea");//000036f5-0000-1000-8000-00805f9b34fb

    public SBleServiceProfile() {
    }

    public static BluetoothGattService createBleService() {
        BluetoothGattService service = new BluetoothGattService(UUID_SERVICE, 0);
        BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(UUID_CHARACTERISTIC_WRITE, 24, 16);
        BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(UUID_CHARACTERISTIC_WRITE, 17);
        characteristic.addDescriptor(descriptor);
        service.addCharacteristic(characteristic);
        return service;
    }

    public static BluetoothGattService addCharacteristic(BluetoothGattService service) {
        BluetoothGattCharacteristic characteristic = new BluetoothGattCharacteristic(UUID_CHARACTERISTIC_WRITE, 24, 16);
        BluetoothGattDescriptor descriptor = new BluetoothGattDescriptor(UUID_CHARACTERISTIC_WRITE, 17);
        characteristic.addDescriptor(descriptor);
        service.addCharacteristic(characteristic);
        return service;
    }
}
